<template>
  <div class="header">
    <span class="center">{{ title }}</span>
    <span class="date">{{ getDate }}</span>
  </div>

</template>

<script setup name="title">
defineProps(['title', 'getDate'])

</script>

<style>
* {
  margin: 0;
  padding: 0;
}

.header {
  width: 100vw;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;


  .center {
    font-size: 18px;
    z-index: 11;
    font-weight: 700;
    color: #671221;
    position: relative;
  }

  .center::before {
    content: '';
    background-color: #ffd0d0;
    width: 100px;
    height: 20px;
    position: absolute;
    z-index: -1;
    border-radius: 10px 10px 0px 10px;
    bottom: -5px;
    right: -5px;
  }

  .date {
    position: absolute;
    top: 50px;
    color: #671221;
    font-size: 14px;
    z-index: 100;
  }
}
</style>